Plot Workbench/de

Druck Arbeitsbereichsymbol

Einführung

FreeCAD is able to perform plots using the matplotlib Python library. A module is provided to this end, as an external add-on in version 0.19 and as a core component from version 0.20 on. Older versions of FreeCAD are not covered in this documentation.

The produced plots offer the standard matplotlib tools to edit and save. On top of that, the Plot Workbench is provided as an external add-on offering more complete tools to edit the plot and save it. The add-on can be installed with the Add-on manager.

Modul

The module can be invoked in a Python console or in a macro. The first thing you must do is importing the module. In FreeCAD 0.19 you must first install the Plot Workbench using the Add-on manager, and then you can import Plot by typing:

from freecad.plot import Plot

Since FreeCAD 0.20 the Plot module is already packaged with the program, so you don't need to install any add-on, but just type:

from FreeCAD.Plot import Plot

After that, you can plot a straight line from (0,0) to (1,2) just simply typing:

Plot.plot([0, 1], [0, 2])

Komplexere Beispiele findet man im Plot Grundlagentutorium und dem Plot MehrereAchsenTutorium.

Arbeitsbereichswerkzeuge

If you decide to install the Plot Workbench using the Add-on manager, you will have the following tools available to manage the plots created with the module:

Skripten

Da der Arbeitsbereich Plot eine Ebene über der matplotlib ist, kann jede Funktion aus dieser Bibliothek für Plot-Instanzen verwendet werden. Beispiele findet man unter Skripterstellung und Makros.

Tutorien